package com.sos.core.game.events
{
	import com.sos.core.game.Game;
	import com.sos.core.game.GamePhase;
	
	public class GamePhaseErrorEvent extends GamePhaseEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _code:int;
		private var _message:String;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function GamePhaseErrorEvent(t:String, g:Game, p:GamePhase, code:int, message:String)
		{
			super(t, g, p);
			// Init
			_code = code;
			_message = message;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get code():int
		{
			return _code;
		}
		
		public function get message():String
		{
			return _message;
		}
		
		
	}
}